﻿using NPOI.HSSF.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 出库单货品明细
    /// </summary>
    public partial class TShippingGoodsDetail
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 货物条码
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// 出货明细表Id
        /// </summary>
        public int? OrderDetailId { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料Sn(物料号)
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称(物料描述)
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 预期箱条码
        /// </summary>
        public string PackageBarcode { get; set; }
        /// <summary>
        /// 预期栈板条码
        /// </summary>
        public string PalletBarcode { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        public bool IsOut { get; set; }
        public DateTime? ModifyDate { get; set; }

        #region 西安煤科院  
        ///// <summary>
        ///// 出库明细编号
        ///// </summary>
        //public string OrderDetailNo { get; set; }

        ///// <summary>
        ///// 立体库库存ID
        ///// </summary>
        //public string StockDetailsId { get; set; }

        ///// <summary>
        ///// 库存地点
        ///// </summary>
        //public string StockLocation {  get; set; }

        ///// <summary>
        ///// 工厂
        ///// </summary>
        //public string Factory {  get; set; }

        ///// <summary>
        ///// 工厂名称
        ///// </summary>
        //public string FactoryName { get; set; }

        ///// <summary>
        ///// 批次
        ///// </summary>
        //public string BatchNo { get; set; }

        ///// <summary>
        ///// 拣配单行号
        ///// </summary>
        //public string PicklistLineNo { get; set; }

        ///// <summary>
        ///// 特殊库存标识
        ///// </summary>
        //public string StoreMark { get; set; }

        ///// <summary>
        ///// 创建人
        ///// </summary>
        //public string Founder {  get; set; }

        ///// <summary>
        ///// 仓库号
        ///// </summary>
        //public string StorageNo { get; set; }

        ///// <summary>
        ///// 仓储区域
        ///// </summary>
        //public string StorageArea { get; set; }

        ///// <summary>
        ///// 仓位号
        ///// </summary>
        //public string BinNo { get; set; }

        ///// <summary>
        ///// 启动序列号标识
        ///// </summary>
        //public string SerialNumberEnabled { get; set; }

        ///// <summary>
        ///// 出库数量
        ///// </summary>
        //[Column(TypeName = "decimal(18,2)")]
        //public decimal QuantityOut { get; set; }

        ///// <summary>
        ///// 物料序列号
        ///// </summary>
        //public string SerialNo { get; set; }

        ///// <summary>
        ///// 供应商编号
        ///// </summary>
        //public string SupplierNo { get; set; }

        ///// <summary>
        ///// 供应商名称
        ///// </summary>
        //public string SupplierName { get; set; }

        ///// <summary>
        ///// WBS码
        ///// </summary>
        //public string WbsCode { get; set; }

        ///// <summary>
        ///// 库存类型
        ///// </summary>
        //public string StoreType { get; set; }

        ///// <summary>
        ///// 物料单位
        ///// </summary>
        //public string BaseUnit { get; set; }
        #endregion

        #region 徐州学校项目新增字段
        /// <summary>
        /// 行项目
        /// </summary>
        public int? Iineitem { get; set; }

        /// <summary>
        /// 采购单行项目
        /// </summary>
        public string PurchaseIineitem { get; set; }

        /// <summary>
        /// 销售订单号
        /// </summary>
        public string MarketOrderSn { get; set; }

        /// <summary>
        /// 销售订单行项目
        /// </summary>
        public string MarketIineitem { get; set; }

        /// <summary>
        /// 发货数量
        /// </summary>
        public decimal? ShipmentsNum { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public decimal? RetreatNum { get; set; }

        /// <summary>
        /// 需求数量
        /// </summary>
        public decimal? NeedNum { get; set; }

        /// <summary>
        /// 退货单位名称
        /// </summary>
        public string RetreatUnitName { get; set; }
        /// <summary>
        /// 退货单位编码
        /// </summary>
        public string RetreatUnitCode { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitCode { get; set; }

        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime? DeliveryTime { get; set; }
        #endregion
    }
}
